// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.core.skinnedmodel.model;

import java.nio.ByteBuffer;
import zombie.core.Color;
import zombie.core.skinnedmodel.Vector3;
import zombie.iso.Vector2;

public final class VertexPositionNormalTextureColor {
    public Color Color;
    public Vector3 Position;
    public Vector3 Normal;
    public Vector2 TextureCoordinates;

    public void put(ByteBuffer buf) {
        buf.putFloat(this.Position.x());
        buf.putFloat(this.Position.y());
        buf.putFloat(this.Position.z());
        buf.putFloat(this.Normal.x());
        buf.putFloat(this.Normal.y());
        buf.putFloat(this.Normal.z());
        buf.putFloat(this.TextureCoordinates.x);
        buf.putFloat(this.TextureCoordinates.y);
        buf.put((byte)((int)(this.Color.r * 255.0F)));
        buf.put((byte)((int)(this.Color.g * 255.0F)));
        buf.put((byte)((int)(this.Color.b * 255.0F)));
    }
}
